<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>Infinity</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">Infinity()</font></b></p>
<p><b>语法</b></p><blockquote>

Result.f = <font color="#3A3966"><b>Infinity</b></font>()</blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Returns the special floating-point value representing positive infinity. Negative infinity can 
be calculated using "-Infinity()". 

 

</blockquote><p><b>参数</b></p><blockquote>
无.


</blockquote><p><b>返回值</b></p><blockquote>



Returns the value representing infinity. The result is a float or double value depending on whether 
it is assigned to a <a href="../reference/variables.html">float or double</a> variable. 

 

</blockquote><p><b>备注</b></p><blockquote>



Infinity and negative infinity are special values. They behave in calculations in the way you would 
generally expect. For example dividing infinity by any positive number (except 0 or infinity) will result in 
infinity again. The <a href="isinfinity.html">IsInfinity()</a> function can be used to check if a value represents 
positive or negative infinity. 

 

</blockquote><p><b>示例</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#3A3966">Debug</font></b> <font color="#3A3966">IsInfinity</font>(<font color="#3A3966">Infinity</font>() / 1000) <font color="#3A3966">; will display 1</font>
</font></pre>

</blockquote><p><b>参阅</b></p><blockquote>

<a href="isinfinity.html">IsInfinity()</a>, <a href="nan.html">NaN()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=exp.html>Exp()</a> - <a href="index.html">Math Index</a> - <a href="int.html">Int()</a> -&gt;<br><br>

</body></html>